import service from '../request'

// 获取操作日志列表
export function getloglist(data) {
  return service({
    url: '/operation/log',
    method: 'get',
    params: data,
  })
}

// 获取登录日志列表
export function getloginlist(data) {
  data.beginTime = data.playTime?.[0] || ''
  data.endTime = data.playTime?.[1] || ''

  delete data.playTime

  console.log('data', data)
  return service({
    url: '/login/log',
    method: 'get',
    params: data,
  })
}
